package your.rfgui.extgui.controller.tree.data;

import your.rfgui.extgui.data.intf.DataItem;

/**
 * Holds a simple label
 */
public class LabelDataItem implements DataItem {

   private String label;

   public LabelDataItem(String label) {
      this.label = label;
   }

   public String getLabel() {
      return label;
   }

   public boolean identical(DataItem object) {
      if (!(object instanceof LabelDataItem)) {
         return false;
      }
      return label == ((LabelDataItem)object).label;
   }

}
